chore(deps): update phpstan packages (major)#19
Open
renovate[bot] wants to merge 1 commit intomainfrom
Open
Conversation
1e7b8d5 to
546032c
Compare
546032c to
1299891
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^3.0->^4.0^1.0->^2.0^1.0->^2.0^1.3->^2.0Release Notes
brainbits/phpstan-rules (brainbits/phpstan-rules)
v4.0.0Compare Source
Features
BREAKING CHANGES
Jan0707/phpstan-prophecy (jangregor/phpstan-prophecy)
v2.2.0: (2025-05-22)Compare Source
What's Changed
Full Changelog: Jan0707/phpstan-prophecy@2.1.1...2.2.0
v2.1.1: (2025-02-13)Compare Source
What's Changed
Recommend update phpstan and all its extension via:
composer update "*phpstan*"Full Changelog: Jan0707/phpstan-prophecy@2.1.0...2.1.1
v2.1.0: (2025-02-13)Compare Source
What's Changed
Recommend update phpstan and all its extension via:
composer update "*phpstan*"PHPStan 2.1.5 required to work correctly.
Full Changelog: Jan0707/phpstan-prophecy@2.0.0...2.1.0
v2.0.0Compare Source
What's Changed
New Contributors
Full Changelog: Jan0707/phpstan-prophecy@1.0.2...2.0.0
phpstan/phpstan (phpstan/phpstan)
v2.1.21Compare Source
v2.1.20Compare Source
Bugfixes 🐛
v2.1.19Compare Source
Improvements 🔧
str_split()return type (#3999), thanks @VincentLanglet!Bugfixes 🐛
IntersectionType::isIterableOnce()(#4106), #13248, thanks @VincentLanglet!array_mapwith named arguments (#3763), #12317, thanks @takaram!ObjectType::getOffsetValueType()(#4126), #12125, #9575, #9456, #13144, thanks @VincentLanglet!property.nameNotString(#4117), #13271ConstantArrayType::spliceArray()(#4140), #13279, thanks @herndlm!exceptionTypeResolverin neon (phpstan/phpstan-src@e7febc3)Function signature fixes 🤖
stream_filter_*signatures (#4125), #12380, thanks @VincentLanglet!Internals 🔍
#[RequiresPhp]attribute rule (#4127), thanks @takaram!dumpNativeType(#4108), thanks @VincentLanglet!v2.1.18Compare Source
Bleeding edge 🔪
If you want to see the shape of things to come and adopt bleeding edge features early, you can include this config file in your project's
phpstan.neon:Of course, there are no backwards compatibility guarantees when you include this file. The behaviour and reported errors can change in minor versions with this file included. Learn more
Improvements 🔧
@phpstan-sealedsupport (#4095), thanks @VincentLanglet!--fail-without-result-cachewhen the error formatter returns 0 (phpstan/phpstan-src@df9fa6e)count()return type inObjectType::getArraySize()(#4072, #4078), thanks @vojtech-dobes!PDO::connectdynamic method return type extension (#4015), #12359, thanks @VincentLanglet!PhpVersion::__constructto BC promise (#4022), #8582, thanks @VincentLanglet!switchon::class(#4011), #13069, thanks @VincentLanglet!array_keysreturn type (#3590), #11928, thanks @staabm!Bugfixes 🐛
ClosureType::equals()for pure/impure closures (phpstan/phpstan-src@02066c7), #13067in_array()always true (#4073), #13151, #8818, #12755, #12412, thanks @VincentLanglet!MixedType->equals(ErrorType)(#3934), thanks @staabm!unset()with nested dim fetch (#3964), #12927, #12330, #11171, #8282, #12754, thanks @staabm!Function signature fixes 🤖
posix_getpwnam()(#4091), #12254, thanks @zonuexe!SimpleXMLElement::xpathreturn type (#4096), thanks @VincentLanglet!locale_get_display_x()return types (#4085), thanks @cfahner!DOMElement::$attributesstub (#4029), #13076, thanks @VincentLanglet!Internals 🔍
parametersSchema.neon(phpstan/phpstan-src@72c2a8d)vendor/attributes.php.AutowiredServiceAutowiredParameterNonAutowiredServiceGenerateFactoryRegisteredRuleRegisteredCollector#[Override]for methods overriding 3rd party (phpstan/phpstan-src@98ed732)??=(#4084), thanks @zonuexe!$var === constwithin_array()(#4098), thanks @zonuexe!assertSuperTypetesting utility (#4066), thanks @vojtech-dobes!Type::spliceArray(), improvesplice_array()array type narrowing (#3952), thanks @herndlm!v2.1.17Compare Source
Major new features 🚀
Bleeding edge 🔪
new static()in static method of abstract class - level 0 (phpstan/phpstan-src@a5f7c06)If you want to see the shape of things to come and adopt bleeding edge features early, you can include this config file in your project's
phpstan.neon:Of course, there are no backwards compatibility guarantees when you include this file. The behaviour and reported errors can change in minor versions with this file included. Learn more
Improvements 🔧
Bugfixes 🐛
array_column()with explicit null$index_key(#3970), #12945, thanks @herndlm!getNativeExprType(phpstan/phpstan-src@222676e)Function signature fixes 🤖
libxml_get_errors()(#3973), thanks @jack-worman!Internals 🔍
ProcessPromise::cancel()from deferred canceller (phpstan/phpstan-src@df4c1f3)getPhpDocReturnTypeWithUnresolvableTemplateTypesfromResolvedFunctionVariantWithCallable(phpstan/phpstan-src@e3c76ad)v2.1.16Compare Source
Improvements 🔧
@finalPHPDoc tag above properties (#3990), #12999, thanks @lpd-au!Bugfixes 🐛
preg_split()function return type (#3757), thanks @malsuke!Function signature fixes 🤖
v2.1.15Compare Source
Improvements 🔧
__toStringmethods in(string)cast (phpstan/phpstan-src@ce257d9)Bugfixes 🐛
new UnionType(phpstan/phpstan-src@1044f11), #12512{min,max}()(#3928), #12731, thanks @cs278!IterableType::equals()withTemplateIterableType(#3991), thanks @staabm!Function signature fixes 🤖
DOMNode::hasAttributes(#3800), thanks @Niklan!Internals 🔍
instanceof *Typein Rules classes (#3858), thanks @zonuexe!v2.1.14Compare Source
Bugfixes 🐛
strict_types=0(#3965), #12946, #12940, #12950, #12947, thanks @staabm!array_slice()edge cases (#3959), thanks @herndlm!non-falsy-stringcannot be converted to0(#3971), thanks @staabm!Internals 🔍
$parentNode = $parentNode(#3938), thanks @samsonasik!v2.1.13Compare Source
Major new features 🚀
Bleeding edge 🔪
@internalsymbols usage from outside their top namespace, #1178If you want to see the shape of things to come and adopt bleeding edge features early, you can include this config file in your project's
phpstan.neon:Of course, there are no backwards compatibility guarantees when you include this file. The behaviour and reported errors can change in minor versions with this file included. Learn more
Improvements 🔧
array_splice()(#3947), thanks @herndlm!array_slice()for normal arrays (#3946), #12880, thanks @herndlm!ConstantArrayType::sliceArray()with non constant integer args (#3949), thanks @herndlm!Bugfixes 🐛
Scope::rememberConstructorScope()should not remember the function scope (#3944), https://github.com/spaze/phpstan-disallowed-calls/issues/323, thanks @staabm!session_set_cookie_paramscall with named arguments (phpstan/phpstan-src@72e37dc), #12934Internals 🔍
ConstantArrayType::shuffle()(#3948), thanks @herndlm!ExtendedPropertyReflection::getName()(phpstan/phpstan-src@ff198c9)v2.1.12Compare Source
Improvements 🔧
discoveringSymbolstip (#3929), https://github.com/phpstan/phpstan/discussions/12859, thanks @herndlm!Bugfixes 🐛
count()(#3902), #12787, thanks @herndlm!Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR was generated by Mend Renovate. View the repository job log.